'use strict';
/*
 app.get('/home', 'home');
 app.get('/user/:id', 'user.page');
 app.post('/admin', isAdmin, 'admin');
 app.post('/user', isLoginUser, hasAdminPermission, 'user.create');
 app.post('/api/v1/comments', 'v1.comments.create'); // app/controller/v1/comments.js
 */
module.exports = app => {
    app.get('/', 'home.index');
    app.get('/search', 'search');
    app.get('/news', 'news.list');

    require('./router/admin')(app);
    require('./router/api')(app);
};
